﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Security.Cryptography;
using System.Text;
using System.Web;
using System;
using System.IO;
using System.Security.Cryptography;
using System.Text;
namespace Web.Core
{
    public class Utils
    {
        public static String GetImageBase64(Byte[] iByte)
        {
            MemoryStream stream = new MemoryStream(iByte);
            Byte[] bytes = stream.ToArray();
            return Convert.ToString(String.Format("data:image/png;base64, {0}", Convert.ToBase64String(bytes)));
        }

   }
}